/**
 * Time: 下午2:07
 */
var config = {
    errorMsg: {
        networkFail: '出错了*_*!错误代码 '
    },
    menu: {
        menu: 'api/menu.php',
        click: 'api/menu.click.php'
    },
    common: {
        headerMessage: 'api/headerMessage.php'
    },
    page: {
        xtype: {
            'iframe': 'Iframe',
            'new_order': 'NewOrderPage',
            'buy': 'page.buy.Controller',
            'order_search': 'OrderSearchPage',
            'MoneyAccountLogsSearchPage': 'MoneyAccountLogsSearchPage'
            //{xtype}//
        }
    },
    template: {
        param: {
            'ParamOnlineNewSale': 'ParamOnlineNewSale', //企业QQ在线400/800新销售业务单
            'ParamHrtxNewSale': 'ParamHrtxNewSale'
        },
        information: {
            'InformationOnline': 'InformationOnline'
        }
    }
};

Ext.MessageBox.buttonText.ok = '确定';
Ext.MessageBox.buttonText.cancel = '取消';
Ext.MessageBox.buttonText.no = '取消';
Ext.MessageBox.buttonText.yes = '确定';

Ext.Ajax.method = 'POST';
Ext.Ajax.on('requestcomplete', function (conn, response) {
    var result = Ext.decode(response.responseText);
    if (result['logout']) {
        window.location.href = result['logout'];
    }
});
